package model

import (
	"gorm.io/gorm"
	"time"
)

type Users1 struct {
	Id        uint           `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	Phone     string         `gorm:"column:phone;type:char(11);not null;" json:"phone"`
	Password  string         `gorm:"column:password;type:char(32);not null;" json:"password"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}

type Patients struct {
	Id           uint   `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	Name         string `gorm:"column:name;type:varchar(30);not null;" json:"name"`
	Age          int    `gorm:"column:age;type:bigint(10);not null;" json:"age"`
	Symptom      string `gorm:"column:symptom;type:varchar(50);not null;" json:"symptom"`
	Hospitalized string `gorm:"column:hospitalized;type:varchar(20);not null;" json:"hospitalized"`
	Discharge    string `gorm:"column:discharge;type:varchar(20);not null;" json:"discharge"`
	Doctor       string `gorm:"column:doctor;type:varchar(20);not null;" json:"doctor"`
}
